package wjw.mapper;

import com.wjw.mapper.AncillaryFacilitiesTableMapper;
import com.wjw.mapper.RoadDamageTableMapper;
import com.wjw.model.Damage_type_stable;
import com.wjw.model.Road_damage_table;
import com.wjw.utils.GetSqlSessionUtils;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

import java.util.List;

public class raodDamage {

    private SqlSession sqlsession= GetSqlSessionUtils.getSqlSession();
    private RoadDamageTableMapper mapper=sqlsession.getMapper(RoadDamageTableMapper.class);

    @Test
    public void test01(){
        List<Road_damage_table> all = mapper.findAll();
        System.out.println(all);
    }

    @Test
    public void test02(){
        Damage_type_stable damageSById = mapper.findDamageSById(1);
        System.out.println(damageSById);
    }
}
